﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace HKQuery.BLL
{
    public partial class Query
    {
        public readonly HKQuery.DAL.Query dal = new HKQuery.DAL.Query();

        public DataTable GetList(string cxlx,string strWhere1, string strWhere2, string gp, string xm, string od, string fm, int PageIndex, int PageSize)
        {
            if (cxlx == "1")
            {

                return dal.GetList1(strWhere1, strWhere2, gp, xm, od, fm, PageIndex, PageSize).Tables[0];
            }else
            {

                return dal.GetList2(strWhere1, strWhere2, gp, xm, od, fm, PageIndex, PageSize).Tables[0];
            }
        }

        public DataTable GetListHJ(string cxlx, string strWhere1, string strWhere2, string gp, string xm, string od, string fm, int PageIndex, int PageSize)
        {
            if (cxlx == "1")
            {

                return dal.GetList1HJ(strWhere1, strWhere2, gp, xm, od, fm, PageIndex, PageSize).Tables[0];
            }
            else
            {

                return dal.GetList2HJ(strWhere1, strWhere2, gp, xm, od, fm, PageIndex, PageSize).Tables[0];
            }
        }
    }
}
